//
//  DatabaseHandle.h
//  Douban
//
//  Created by lanou3g on 15/5/20.
//  Copyright (c) 2015年 lanou3g 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface DatabaseHandle : NSObject

+ (DatabaseHandle *)shareInstance;

//打开数据库
- (void)openDB;

//关闭数据库
- (void)closeDB;

//插入收藏的活动
- (void)insertNewActivity:(NSData *)data Key:(NSString *)key;

//删除收藏
- (void)deleteStudentByKey:(NSString *)key;

//获取某个收藏的活动对象
- (NSData *)selectActivityWithTitle:(NSString *)title;


//判断活动是否被收藏
- (BOOL)isFavoriteActivityWithTitle:(NSString *)title;



@end
